package ${packageName}.${moduleName}.mapper;

import java.util.Map;
import java.util.List;
import ${packageName}.${moduleName}.entity.${modelName};

/**
 * ${modelDesc} Mapper接口
 * @author ${author!"habitplus"}, created at ${.now?string["yyyy/MM/DD HH:mm:ss.SSS"]}
 */
public interface ${modelName}Mapper {
    int add(${modelName} entity);
    int delete(String id);
    int update(${modelName} entity);
    ${modelName} get(String id);
    List<${modelName}> listAll();
    // 根据条件查询
    List<${modelName}> select(Map<String, Object> condition);
    // 获取记录数
    Long count(Map<String, Object> condition);
}